package tr.edu.fatih.networkprogramming.etaksiclient.shared;import java.util.List;import java.util.Locale;import android.content.Context;import android.location.Address;import android.location.Geocoder;import android.location.Location;public class Helper {	private static Helper _instance;		protected Helper() { }		public static Helper Instance() {		if (_instance == null)			_instance = new Helper();		return _instance;	}		public String getAddressFromLocation(Context context, Location loc) 	{		Geocoder gc = new Geocoder(context, Locale.getDefault());		List<Address> addresses;		String address = "";		try 		{			int i = 0;			String temp = "";			addresses = gc.getFromLocation(loc.getLatitude(), loc.getLongitude(), 1);			temp = addresses.get(0).getAddressLine(i);			while (temp != null)			{				address += temp + "\n";				temp = addresses.get(0).getAddressLine(++i);			}		}		catch (Exception ex)		{			ex.printStackTrace();		}		return address;	}}